﻿using System;
using System.IO;
using System.Reflection;
using System.Web;

using PickGold.Util;

namespace PickGold.Web
{
	/// <summary>
	/// Json 生成器接口。
	/// </summary>
	public interface IJson : IJsonBuilder
	{
		/// <summary>
		/// 设置变量名
		/// </summary>
		/// <param name="parent">父变量名，如果为“/”则为“window”对象</param>
		/// <param name="ajax">变量名</param>
		/// <returns>变量名</returns>
		string SetVariable(string parent, IWebPage ajax);
		/// <summary>
		/// 设置变量名
		/// </summary>
		/// <param name="parent">父变量名，如果为“/”则为“window”对象</param>
		/// <param name="context">变量名</param>
		/// <returns>变量名</returns>
		string SetVariable(string parent, HttpContext context);
	}
}
